package JavaSE.d3;
/*
	使用二维数组的声明、创建、初始化、访问
 */
public class Test18 {
    public static void main(String[] args) {
        //声明数组
        int a[][];
        //创建数组
        a=new int[4][5];
        //初始化数组
        int[][] b={{1,2},{1,2,3,},{4,5,6}};
        //访问数组
        for (int i = 0; i < b.length; i++) {
            for (int j = 0; j <b[i].length; j++) {
                System.out.print(b[i][j]);
            }
            System.out.println();
        }

    }
}
